package com.Io;

import java.io.File;
import java.io.IOException;

public class Test_1 {
    public static void main(String[] args) {
create();

    }
    //创建文件
    public static void create(){
        String pathname="D:\\javacode\\javacode\\J2024_11_16\\night.txt";
        File file = new File(pathname);
        try {
            file.createNewFile();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
